// @ts-ignore
/* eslint-disable */
import request from '@/request';

/** addMovieShow POST /api/movieShow/add */
export async function addMovieShowUsingPost(
  body: API.MovieShowAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/movieShow/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteMovieShow POST /api/movieShow/delete */
export async function deleteMovieShowUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieShow/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editMovieShow POST /api/movieShow/edit */
export async function editMovieShowUsingPost(
  body: API.MovieShowEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieShow/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getMovieShowVOById GET /api/movieShow/get/vo */
export async function getMovieShowVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMovieShowVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseMovieShowVO_>('/api/movieShow/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMovieShowByPage POST /api/movieShow/list/page */
export async function listMovieShowByPageUsingPost(
  body: API.MovieShowQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieShow_>('/api/movieShow/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMovieShowVOByPage POST /api/movieShow/list/page/vo */
export async function listMovieShowVoByPageUsingPost(
  body: API.MovieShowQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieShowVO_>('/api/movieShow/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateMovieShow POST /api/movieShow/update */
export async function updateMovieShowUsingPost(
  body: API.MovieShowUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieShow/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
